import sys
from PyQt4 import QtGui

app = QtGui.QApplication(sys.argv)

lw = QtGui.QListWidget()
lw.setDragDropMode(lw.InternalMove)
for i in range(10):
    item = QtGui.QListWidgetItem('item %d' % i, lw)
lw.show()

sys.exit(app.exec_())

